<include file="public@header" />
<link rel="stylesheet" type="text/css" href="__STATIC__/layui/css/layui.css">
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:url('admin_index/index')}">用户列表</a></li>
        	<li class="active"><a>董事设置</a></li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('admin_index/director')}">
	        <div class="form-group">
	            <label class="col-sm-2 control-label">是否董事</label>
	            <div class="col-md-6 col-sm-10">
	                <select class="form-control" name="director" >
	                    <option value="1" <if $row.director == 1>selected</if> >是</option>
	                    <option value="0" <if $row.director == 0>selected</if> >否</option>
	                </select>
	            </div>
	        </div>
	        <div class="form-group">
	            <label class="col-sm-2 control-label">分佣比例</label>
	            <div class="col-md-6 col-sm-10">
	                <input class="form-control" name="director_share" value="{$row.director_share}">
	            </div>
	        </div>
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<input type="hidden" name="id" value="{$row.id}">
					<input type="hidden" name="user_id" value="{$row.user_id}">
					<input type="hidden" name="old_director" value="{$row.director}">
					<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
				</div>
			</div>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>